home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / DemonicDefence3.swf / scripts / DefineButton2_997 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2005-09-27  |  430 b   |  18 lines

  1. on(release){
  2.    if(_root.magRune >= 2 && _root.windRune >= 3 && this.timey.timer == 100)
  3.    {
  4.       _root.magRune -= 2;
  5.       _root.windRune -= 3;
  6.       this.timey.timer = 0;
  7.       this.timey.timeIt = 2;
  8.       this.timey._visible = true;
  9.       _root.macepower = random(2) + 1;
  10.       _root.summonmace._visible = true;
  11.       _root.summonmace.play();
  12.    }
  13.    else
  14.    {
  15.       _root.messy = "Not enough Runes";
  16.    }
  17. }
  18.